package entity.starter;

import entity.airline.Airline;
import entity.airline.impl.AirlineImpl;
import entity.employee.Employee;
import entity.employee.impl.EmployeeImpl;
import entity.employee.role.Role;
import entity.flight.Flight;
import entity.flight.impl.FlightImpl;
import entity.plane.Plane;
import entity.plane.impl.PlaneImpl;

public class Starter {

    public static void main(String[] args) {
        //Creates an instance airline. Pass the name of the constructor.
        Airline airline = new AirlineImpl("Some airline");
        //Created instance employee. Pass the name in the constructor.
        Employee employee = new EmployeeImpl("Name","Last name");
        employee.setRole(new Role());
        //Created an instance of the plane. Passed the name and capacity of the constructor.
        Plane plane = new PlaneImpl("SuperPlane 1",150);
        //Created flight.
        Flight flight = new FlightImpl();
        //Placed in a plane flight.
        flight.setPlane(plane);
        //Add to flight employee.
        flight.addEmployee(employee);
        //Added to the airline's flight
        airline.addFlight(flight);
        //Output to the console flight information
        System.out.print("������� � ����� "+flight.getPlane().getModel());
    }
}
